home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / tex / tex29 / sttexsrc.zoo / src / file.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-05  |  2.1 KB  |  100 lines

  1.  
  2. /*
  3.  * @(#)file.h 2.6 EPA
  4.  *
  5.  * Copyright 1987,1988 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  * 
  11.  */
  12.  
  13. global  char    name_of_file[];
  14. global  int     name_length;
  15.  
  16. global  str     cur_name;
  17. global  str     cur_area;
  18. global  str     cur_ext;
  19.  
  20. global  int     area_delimiter;
  21. global  int     ext_delimiter;
  22.  
  23. int     print_file_name();
  24. int     pack_file_name();
  25.  
  26. #define TeX_format_default  "plain.fmt"
  27.  
  28. bool    open_fmt_file();
  29.  
  30. str     make_name_string();
  31.  
  32. #define a_make_name_string(f)       make_name_string()
  33. #define b_make_name_string(f)       make_name_string()
  34. #define w_make_name_string(f)       make_name_string()
  35.  
  36. global  bool    name_in_progress;
  37. int     scan_file_name();
  38.  
  39. #define pack_cur_name() \
  40.     {pack_file_name(cur_name, cur_area, cur_ext);}
  41.  
  42. int     pack_job_name();
  43. int     prompt_job_name();
  44.  
  45. global  str     job_name;
  46. global  str     job_area;
  47. global  str     log_name;
  48.  
  49. int     open_log_file();
  50. int     start_input();
  51.  
  52. global  alpha_file  read_file[];
  53. global  int     read_open[];
  54.  
  55. #define JUST_OPENED         1
  56. #define CLOSED              2
  57.  
  58. bool    test_access();
  59.  
  60. #define READ_ACCESS         4
  61. #define WRITE_ACCESS        2
  62.  
  63. #ifdef atarist
  64. #define MAX_PATH_CHARS  128
  65. #else
  66. #define MAX_PATH_CHARS  1024
  67. #endif
  68.  
  69. global  char    input_path[];
  70. global  char    format_path[];
  71. global  char    font_path[];
  72.  
  73. int     set_paths();
  74.  
  75. #ifdef atarist
  76. #define default_font_path       "\\tex\\fonts"
  77. #define default_format_path     "\\tex\\macros;."
  78. #define default_input_path      ".;\\tex\\macros"
  79. #else
  80. #define default_font_path       "/usr/local/lib/tex/fonts/ctfm"
  81. #define default_format_path     "/usr/local/lib/tex/macros:."
  82. #define default_input_path      ".:/usr/local/lib/tex/macros"
  83. #endif
  84.  
  85. #define NO_FILE_PATH        0
  86. #define INPUT_FILE_PATH     1
  87. #define FONT_FILE_PATH      2
  88. #define FORMAT_FILE_PATH    3
  89.  
  90. global  str     str_dvi;
  91. global  str     str_tex;
  92. global  str     str_log;
  93. global  str     str_tfm;
  94. global  str     str_fmt;
  95. global  str     str_texput;
  96.  
  97. #ifdef INIT
  98. int     init_file();
  99. #endif
  100.